package org.jeecg.modules.demo.hd.service;

import org.jeecg.modules.demo.hd.entity.AppMyProjectClickdetail;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: app_my_project_clickdetail
 * @Author: jeecg-boot
 * @Date: 2025-04-16
 * @Version: V1.0
 */
public interface IAppMyProjectClickdetailService extends IService<AppMyProjectClickdetail> {


    String addDetail(AppMyProjectClickdetail model);


    void clean();


    /**
     * 获取当前用户在今天点击的次数
     *
     * @return
     */
    Integer getCurrentUserClickCount();

    /**
     * 获取当前用户最后一次点击信息
     *
     * @return
     */
    AppMyProjectClickdetail getLastClick();

    /**
     * 获取当天用户
     *
     * @param deviceId
     * @param userId
     * @return
     */
    Integer getClickCountByDeviceId(String deviceId, String userId);


    /**
     * 获取用户最后一条点击记录
     *
     * @param deviceId
     * @param userId
     * @return
     */
    AppMyProjectClickdetail getLastClickDetail(String deviceId, String userId);
}
